package com.smart.model.dtomapper;

import com.smart.model.domain.ManageTempUserRegistrationDO;
import com.smart.model.request.ManageTempUserRegistrationRequest;
import com.smart.model.vo.ManageTempUserRegistrationVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zyh
 */
@Mapper(componentModel = "spring")
public interface ManageTempUserRegistrationDtoMapper {

    ManageTempUserRegistrationDtoMapper INSTANCE = Mappers.getMapper(ManageTempUserRegistrationDtoMapper.class);

    /**
    * DO to VO
    * @param manageTempUserRegistrationDO
    * @return
    */
    ManageTempUserRegistrationVO do2VO(ManageTempUserRegistrationDO manageTempUserRegistrationDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    ManageTempUserRegistrationDO request2DO(ManageTempUserRegistrationRequest request);
}
